package com.schoolai.oauth2.controller;

import com.schoolai.feign.system.IFeignSchoolSystemController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright(C),2019-2025，XX公司
 * FileName:TestController
 * Author:
 * 创建时间：2025/10/16 13:58
 * Description:
 * History:
 * <auth>        <time>       <version>       <desc>
 * 作者          修改时间       版本号         描述
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    IFeignSchoolSystemController feignSchoolSystemController;
    @GetMapping
    public String test() {
        return feignSchoolSystemController.loadUserByUsername("admin").toString();
    }
}
